<?
/**
 * ps aux |grep process.php
 * 查看当前文件的进程情况
 */
$process = new swoole_process(function (swoole_process $pro){
//子进程
//    php执行文件
    $pro->exec("/usr/bin/php",[__DIR__ . '/../server/http_server.php']);
},false);
//子进程id
$pid = $process->start();
echo $pid . PHP_EOL;

swoole_process::wait();